package design.patterns.creational.simplefactory;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/3/29 9:16
 */
public abstract class Computer {
    protected String name;
    private String memory;
    private String hardDisk;
    private String cpu;
    private String mainBoard;



    public Computer(String name) {
        this.name = name;
    }

    protected Computer() {
    }

    @Override
    public String toString() {
        return "Computer{" +
                "name='" + name + '\'' +
                ", memory='" + memory + '\'' +
                ", hardDisk='" + hardDisk + '\'' +
                ", cpu='" + cpu + '\'' +
                ", mainBoard='" + mainBoard + '\'' +
                '}';
    }
}
